﻿<Window x:Class="ResourceBlender_Express.WinResourcesGridPrompt"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:ResourceBlender_Express"
    loc:WindowService.EscapeClosesWindow="True"
    Title="View Resources" 
    Height="320" Width="480" MinHeight="320" MinWidth="450" MaxHeight="650" MaxWidth="700" SizeToContent="WidthAndHeight"
    WindowStartupLocation="CenterOwner"
    Style="{StaticResource {x:Type Window}}" Icon="/ResourceBlender-Express;component/Resources/images/resourceblender.ico">
    <Window.CommandBindings>
        <CommandBinding Command="loc:ResourceBlenderCommands.ViewResources" Executed="ViewResourcesHandler" />
        <CommandBinding Command="ApplicationCommands.Close" Executed="CloseWindow" />
    </Window.CommandBindings>
    <DockPanel LastChildFill="True">
        <StatusBar DockPanel.Dock="Bottom" Height="24">
            <StatusBarItem x:Name="lblStatus" Visibility="Hidden">Loading</StatusBarItem>
            <ProgressBar x:Name="prgStatus" IsIndeterminate="True" Visibility="Hidden" HorizontalAlignment="Center" />
        </StatusBar>
        <DockPanel x:Name="dokContainer" DockPanel.Dock="Top" LastChildFill="True" Margin="6" HorizontalAlignment="Stretch">
            <Grid DockPanel.Dock="Bottom">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Button Grid.Column="2" MinWidth="140" Command="loc:ResourceBlenderCommands.ViewResources" IsDefault="True">View Resources</Button>
                <Button Grid.Column="3" MinWidth="70" Command="ApplicationCommands.Close" IsCancel="True">Cancel</Button>
            </Grid>
        </DockPanel>
        <!-- ApplicationSelector added in codebehind to maintain designer support -->
    </DockPanel>
</Window>
